<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>添加物流信息</title>
    <link rel="stylesheet" href="../../layui/css/layui.css">
</head>
<body>
<h1>添加物流信息</h1>
<form action="/addLog" method="post">
    <p>商品名：
        <select name="goodId">
                <option th:each="good : ${goodsList}" th:value="${good.id}" th:text="${good.goodName}">商品名称</option>
        </select>
    </p>
    <p>开始时间：<input type="text" placeholder="请输入开始时间" name="startTime"></p>
    <p>结束时间：<input type="text" placeholder="请输入结束时间" name="endTime"></p>
    <p>商品数量：<input type="text" placeholder="商品数量" name="amount"></p>
    <p>发货地址：
        <select name="startAddressId">
                <option th:each="address : ${addressList}" th:value="${address.id}" th:text="${address.addressShen}+${address.addressShi}+${address.addressQu}">省市区</option>
        </select>
    </p>

    <p>收货地址：
        <select name="endAddressId">
            <option th:each="address : ${addressList}" th:value="${address.id}" th:text="${address.addressShen}+${address.addressShi}+${address.addressQu}">省市区</option>
        </select>
    </p>

    <p><input type="submit" value="添加"></p>
</form>
<script src="../../layui/layui.js"></script>
</body>
</html>